#ifndef SCREENWIDGET_H
#define SCREENWIDGET_H

#include <QtGui/QWidget>
#include <QPainter>
#include <QVBoxLayout>
#include <QTextBrowser>
#include <QString>
#include <QLabel>
#include <QKeyEvent>

class ScreenWidget : public QWidget
{
    Q_OBJECT

public:
    ScreenWidget(QWidget *parent = 0);
    ~ScreenWidget();

//    void draw(QPainter *painter);
    void outputText(QString text);

protected:
//    void paintEvent(QPaintEvent * event);
    void keyPressEvent(QKeyEvent * keyEvent);

private:
    QVBoxLayout* layout;
    QTextBrowser* textEdit;
    QLabel* textLabel;

private slots:
//public:
    void drawWindow();
};

#endif // SCREENWIDGET_H
